package entity;

import java.io.Serializable;
import java.util.List;

/**
 * ClassName:Product
 * Package:entity
 *
 * @date:2021/10/28 6:48 下午
 * @author: Tiangle
 */
public class Product implements Serializable {
    private int id;
    private String name;
    private String location;
    private double price;

    List<Comment> coms;
    List<Category> cs;
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }


    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", location='" + location + '\'' +
                ", price=" + price +
                ", coms=" + coms +
                ", cs=" + cs +
                '}';
    }
}
